package com.easy.dao;

import com.easy.bean.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAddressDao {

        int add(@Param("address") UserAddress address);

        int edit(@Param("address") UserAddress address);

        int delete(@Param("id")int id);

        UserAddress getAddressByID(@Param("id")int id);

        List<UserAddress> getAddressByUserID(@Param("userid")int userid);

        int cancelDefault(@Param("userid")int userid);
        int setDefault(@Param("id")int id);
}
